

package com.jingdun.sport.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jingdun.sport.bean.model.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface RoomUserRelationService extends IService<RoomUserRelation> {

    public void addRoomUserRelation(RoomUserRelation roomUserRelation);

    public Page<Map<String, Object>> getPaginationRoomUserRelation(@Param("params") Map<String, Object> m);

    public List getRankFirstAndRankLastList(@Param("params") Map<String, Object> m);

    public Page<Map<String, Object>> getPaginationAllPeopleSport(@Param("params") Map<String, Object> m);

    public List<RoomUserRelation> getRoomUserRelationAllDoneList(@Param("params") Map<String, Object> m);

    public RoomUserRelation getRoomUserRelationDetail(@Param("params") Map<String, Object> m);

    public void updateRoomUserRelation(RoomUserRelation roomUserRelation);

    List<RoomUserRelation> getAllRoomMapUserByRoomId(Set<Long> ufinishedRoomIdSet);

    List<RoomUserRelation> getPageRoomMapByUserId(Map m);

    void updateAllDoneByUserIdAndRoomId(Map roomUserRelation);

    void updateTakenPriceByUserIdAndRoomId(Map map);

    long getCountRoomMapByUserId(Map m);

    boolean getByRoomIdAndUserId(String roomId, String userId);

    NewSportRecords userNewSportProjectBy(Long sportProject, String userId);
}
